//
//  SetCardViewController.h
//  PokerHand
//
//  Created by mrbradle on 10/12/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "PokerHand.h"

@interface SetCardViewController : UIViewController {
    
    Card* card;
    PokerHand* hand;
    UIButton* button;
    
    int suit;
    int value;
    
    UISegmentedControl* suitControl;
    UISlider* valueControl;
    UILabel* valueLabel;
    UILabel* acceptableLabel;
    
    
}

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil card:(Card*) theCard button:(UIButton*) theButton hand:(PokerHand*) theHand;
//pass a button so we can fix the button image after setting it
//pass a poker hand so we can make sure they don't get two of the same card

- (IBAction)suitSet;
- (IBAction)valueSet;
- (void)updateImage;
- (void)updateLabel;
- (bool)verifyCard;

@property (nonatomic,retain) IBOutlet Card* card;
@property (nonatomic,retain) IBOutlet UISegmentedControl* suitControl;
@property (nonatomic,retain) IBOutlet UISlider* valueControl;
@property (nonatomic,retain) IBOutlet UILabel* valueLabel;
@property (nonatomic,retain) IBOutlet UILabel* acceptableLabel;
@property (nonatomic,retain) IBOutlet UIButton* button;
@property (nonatomic,retain) IBOutlet PokerHand* hand;

@end
